<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateNbdeviceTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('nb_device', function (Blueprint $table) {
            $table->increments('id');
            $table->string('verifyCode')->unique();
            $table->string('deviceId')->unique();
            $table->string('psk')->unique();
            $table->string('timeout');
            $table->string('name')->nullable();
            $table->string('deviceType')->nullable();
            $table->string('manufacturerId')->nullable();
            $table->string('manufacturerName')->nullable();
            $table->string('model')->nullable();
            $table->string('protocolType')->nullable();
            $table->string('addtime')->nullable();
            $table->string('updatetime')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('nb_device');
    }
}
